package com.guigu.tms.courier.controller;

import com.guigu.tms.commons.entity.work.TaskPickupDispatch;
import com.guigu.tms.commons.work.feign.TaskPickupDispatchFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/taskPickupDispatch")
public class TaskPickupDispatchController {
    @Autowired
    TaskPickupDispatchFeign taskPickupDispatchFeign;
    @RequestMapping("selectByCourierId")
public List<TaskPickupDispatch> selectByCourierId(String CourierId){
    return taskPickupDispatchFeign.selectByCourierId(CourierId);
}
    @RequestMapping("outPickUp")
    public String outPickUp(@RequestBody TaskPickupDispatch taskPickupDispatch){
        return taskPickupDispatchFeign.outPickUp(taskPickupDispatch);
    }
    @RequestMapping("accptPickUp")
    public String accptPickUp(@RequestBody TaskPickupDispatch taskPickupDispatch){
        return taskPickupDispatchFeign.accptPickUp(taskPickupDispatch);
    }
    @RequestMapping("PickupCompleted")
    public String PickupCompleted(@RequestBody TaskPickupDispatch taskPickupDispatch){
        return taskPickupDispatchFeign.PickupCompleted(taskPickupDispatch);
    }
    @RequestMapping("Warehousing")
    public String Warehousing(@RequestBody TaskPickupDispatch taskPickupDispatch){
        return taskPickupDispatchFeign.Warehousing(taskPickupDispatch);

    }
    @RequestMapping("Handover")
    public String Handover(@RequestBody TaskPickupDispatch taskPickupDispatch){
        return taskPickupDispatchFeign.Handover(taskPickupDispatch);

    }
    @RequestMapping("ConfirmDelivery")
    public String ConfirmDelivery(@RequestBody TaskPickupDispatch taskPickupDispatch){
        return taskPickupDispatchFeign.ConfirmDelivery(taskPickupDispatch);
    }
    @RequestMapping("VerifyPickCode")
    public Boolean VerifyPickCode(@RequestBody Map<String,String> params){
        return taskPickupDispatchFeign.VerifyPickCode(params);
    }
}
